import request from '@/utils/request'

const reviewApi = {
  menu_finds: '/frontend/ProjectType/menu_finds',
  ask_table: 'frontend/review_definition/finds', // 申报台账页table获取
  mobile_mod: 'frontend/review_definition/review_operation',
  extract: 'frontend/review_experts/extract',
  getxtraction_rules: 'frontend/society_rule/rules',
  getexpert_type: 'frontend/society_type/get_society_expert_types',
  gethand_mess: 'frontend/review_experts/get_hand_extract_list',
  getaudit_mess: 'frontend/review_experts/get_extract_result',
  review_search: 'frontend/review_experts/search',
  operate_extract: 'frontend/review_experts/operate_extract_experts',
  create_code: 'frontend/extract_password/create',
  use_password: 'frontend/extract_password/use_password'
}
// 获取树状菜单
export function menuFinds (parameter) {
  return request({
    url: reviewApi.menu_finds,
    method: 'get',
    params: parameter
  })
}
export function askTable (parameter) {
  return request({
    url: reviewApi.ask_table,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function mobilemod (parameter) {
  return request({
    url: reviewApi.mobile_mod,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function extract (parameter) {
  return request({
    url: reviewApi.extract,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function getxtractionrules (parameter) {
  return request({
    url: reviewApi.getxtraction_rules,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function getexperttype (parameter) {
  return request({
    url: reviewApi.getexpert_type,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function gethandmess (parameter) {
  return request({
    url: reviewApi.gethand_mess,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function getauditmess (parameter) {
  return request({
    url: reviewApi.getaudit_mess,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function reviewsearch (parameter) {
  return request({
    url: reviewApi.review_search,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function operateextract (parameter) {
  return request({
    url: reviewApi.operate_extract,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function createCode (parameter) {
  return request({
    url: reviewApi.create_code,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
export function usePassword (parameter) {
  return request({
    url: reviewApi.use_password,
    method: 'post',
    data: parameter,
    headers: {
      'Content-Type': 'application/formdata;charset=UTF-8'
    }
  })
}
